<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<table border="1">
    <tr>
        <th>编号</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>邮箱号</th>
        <th>创建时间</th>
        <th>修改时间</th>
        <th>操作</th>

    </tr>
    <tr th:each=" user : ${li.getRecords()} ">
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.age}"></td>
        <td th:text="${user.email}"></td>
        <td th:text="${user.createTime}"></td>
        <td th:text="${user.updateTime}"></td>
        <td><a href="/update" th:href="@{/update(id=${user.id})}">修改</a> <a  th:href="@{/delete(id=${user.id})}">删除</a> </td>
    </tr>
</table>

<a href="/top" th:if="${li.hasPrevious()}" th:href="@{/page(pageNum=${li.current}-1)}">上一页</a> 总页数<span th:text="${li.pages}"></span> 当前页数 <span th:text="${li.current}"></span>
<a href="/ye" th:each="i:${#numbers.sequence(1,li.pages)}" th:text="${i}" th:href="@{/page(pageNum=${i})}"></a>
<a href="" th:href="@{/page(pageNum=${li.current}+1)}" th:if="${li.hasNext()}">下一页</a>

<a href="/add">添加</a>
</body>
</html>